﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Insteon
{
    [DataContract]
    public class Dimmer: Device, IVariable 
    {
        public Dimmer()
        {
        }

        public Command LevelOn(byte level)
        {
            return new Command(ID, Commands.LevelString, level.ToString("X2"));
        }

        public Command OnFast()
        {
            return new Command(ID, Commands.OnFastString);
        }

        public Command Off()
        {
            return new Command(ID, Commands.OffString);
        }

        public Command Status()
        {
            return new Command(ID, Commands.LevelStatus);
        }
    }
}
